﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_TreeListLayout.cshtml";
}
@inherits CMSWebViewPage<object>

<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'west',width:180">
        <ul id="tree_powerinfo" data-options="url:'/powerinfo/TreeJson/1',onClick:CreatePage,animate:true,lines:true"></ul>
    </div>
    <div id="div_powerinfo" class="yhidden" data-options="region:'center',border:false">
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
        var objBizTree = new BizTree("#tree_powerinfo");
        function CreatePage(node) {
            $div = $("#div_powerinfo");
            $div.children().remove();
            $div.append(CreateiFrame("/powerinfo/powerinfoIndex?TransferID=" + node.id + "&PowerName=" + node.text));
        }
        function RefreshTree() {
            objBizTree.reload();
        }
    </script>
}
